<!DOCTYPE html>
<html>

	<head>
	
		<meta charset="UTF-8">
		
		<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
		
		<title>Visualizaci&oacute;n de diagrama Gantt - Esmeralda Corp. SAC</title>
		
		<link rel="stylesheet" href="css/gen-general.css" />
		<link rel="stylesheet" href="css/gen-diagrama.css" />
		
		<link rel="stylesheet" href="css/jquery.ganttView.css" />
		<link rel="stylesheet" href="css/jquery.ui.all.css" />
		
		<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
		<script type="text/javascript" src="js/jquery-ui-1.8.17.custom.js"></script>
		<script type="text/javascript" src="js/jquery.ui.datepicker-es.js"></script>
		
		<script type="text/javascript" src="js/date.js"></script>
		<script type="text/javascript" src="js/jquery.ganttView.js"></script>
		
		<script type="text/javascript" src="js/gen-general.js"></script>
		<script type="text/javascript" src="js/gen-diagrama.js"></script>
	
	</head>
	
	<body>
	
		<header>
			<?php include ("temp/head-diagrama.php");?>
		</header>
		
		<section id="area-menu">
			<?php include ("temp/head-menu.php");?>
		</section>
		
		<section id="area-warn">
			<?php include ("temp/warn-area.php");?>
		</section>
		
		<section id="area-visu">
		
			<div id="visu-tool">
			
				<section class="tool-pane" id="area-tipo">
					<div class="pane-head">TIPOS</div>
					<article>
						<div class="tipo-cont cont-gene-selected" id="tipo-0">
							<label>Todos</label>
						</div>
						<div class="tipo-cont" id="tipo-1">
							<label>SISTEMAS</label>
						</div>
						<div class="tipo-cont" id="tipo-2">
							<label>SOPORTE</label>
						</div>
					</article>
				</section>
			
				<section class="tool-pane" id="area-esta">
					<div class="pane-head">ESTADOS</div>
					<article>
						<!-- 
						<div class="esta-cont cont-gene-selected" id="esta-0">
							<label>Todos</label>
						</div> 
						-->
						<?php
						
							define("root",$_SERVER["DOCUMENT_ROOT"]);
							include_once(root."/ecsac-tic-apps-extranet/web-cont/esmeralda-services-maintenance/class/class/classEstadoTarea.php");
							
							$objEstadoTareaC = new classEstadoTarea();
							
							$arrListaEstadoTareaE = null;
							
							$arrListaEstadoTareaE = $objEstadoTareaC->listarEstadoTareaTodas();
							
							if(count($arrListaEstadoTareaE) > 0){
								
								$cont_estado = "";
								$cont_estado = $cont_estado . "<div class='esta-cont cont-gene-selected' id='esta-0'>";
								$cont_estado = $cont_estado . "<label>Todos</label>";
								$cont_estado = $cont_estado . "</div>";
								
								echo $cont_estado;
								
								foreach ($arrListaEstadoTareaE as $objEstadoTareaE){
									
									$cont_estado = "";									
									$cont_estado = $cont_estado . "<div class='esta-cont' id='esta-" . strval($objEstadoTareaE->get_int_nro_unico()) . "'>";
									$cont_estado = $cont_estado . "<label>" . $objEstadoTareaE->get_str_descripcion() . "</label>";
									$cont_estado = $cont_estado . "</div>";
									
									echo $cont_estado;
								
								}
								
							}
							
						?>
					</article>
				</section>
			
				<section class="tool-pane" id="area-empr">
					<div class="pane-head">EMPRESAS</div>
					<article>
						<!-- 
						<div class="empr-cont cont-gene-selected" id="empr-0">
							<label>Todos</label>
						</div>
						 -->
						 <?php
						
							define("root",$_SERVER["DOCUMENT_ROOT"]);
							include_once(root."/ecsac-tic-apps-extranet/web-cont/esmeralda-services-maintenance/class/class/classEmpresa.php");
							
							$objEmpresaC = new classEmpresa();
							
							$arrListaEmpresaE = null;
							
							$arrListaEmpresaE = $objEmpresaC->listarEmpresaTodas();
							
							if(count($arrListaEmpresaE) > 0){
								
								$cont_empresa = "";
								$cont_empresa = $cont_empresa . "<div class='empr-cont cont-gene-selected' id='empr-0'>";
								$cont_empresa = $cont_empresa . "<label>Todos</label>";
								$cont_empresa = $cont_empresa . "</div>";
								
								echo $cont_empresa;
								
								foreach ($arrListaEmpresaE as $objEmpresaE){
									
									$cont_empresa = "";									
									$cont_empresa = $cont_empresa . "<div class='empr-cont' id='empr-" . strval($objEmpresaE->get_int_nro_unico()) . "'>";
									$cont_empresa = $cont_empresa . "<label>" . $objEmpresaE->get_str_descripcion() . "</label>";
									$cont_empresa = $cont_empresa . "</div>";
									
									echo $cont_empresa;
								
								}
								
							}
							
						?>
					</article>					
				</section>
					
				<section class="tool-pane" id="area-tare">
					<div class="pane-head">TAREAS</div>
					<article>
						
					</article>
				</section>
				
				<section class="tool-pane" id="area-usua">
					<div class="pane-head">PERSONAL</div>
					<article>
						<div class="usua-cont" id="">
							<label>Seleccione una Tarea programada</label>
						</div>
					</article>
				</section>
				
				<section class="tool-pane" id="area-orde">
					<div class="pane-head">ORDENES</div>
					<article>
						<div class="orde-cont" id="">
							<label>Seleccione una Tarea programada</label>					
						</div>
					</article>
				</section>
				
				<section id="area-cron">
					<article>
						
					</article>
				</section>
			
			</div>
			
			<div id="visu-conf">
				<section id="area-conf">
					
					<label for="conf-date-inic">INICIO</label>
					<input id="conf-date-inic" class="tipo-cont-inic" type="text" size="10" max="10" />
					<label for="conf-date-fina">FIN</label>
					<input id="conf-date-fina" class="tipo-cont-fina" type="text" size="10" max="10" />
					<input id="conf-date-gene" type="button" value="VISUALIZAR DIAGRAMA" />
					
				</section>
			</div>
			
			<div id="visu-view">
			
				<section id="area-diag">
									
					<!-- <section class="diag-head">
					
						<div class="diag-tare" id="diag-tare-1">
							<label>Seleccione una tarea programada</label>						
						</div>
						
					</section>
					
					<section class="diag-tool">
						
						<input type="button" id="btn-tare-wind-redi" value="Redimensionar" />
						
					</section> -->
					
					<section class="diag-body">
					
					</section>
					
				</section>
				
			</div>
		
		</section>
		
		<footer>
			<?php include ("temp/foot.php");?>
		</footer>
	</body>
	
</html>